package com.dps.recommend.beans;

import com.dps.recommend.ann.RequestField;
import jakarta.validation.constraints.Max;
import lombok.Data;

import java.io.Serializable;

@Data
public class Request implements Serializable {

    /**
     * 用户id
     */
    @RequestField(name = "user_id")
    private String userId;


    /**
     * 是否开启debug模式
     */
    @RequestField(name = "debug")
    private Boolean debug = Boolean.FALSE;


    /**
     * 场景
     */
    @RequestField(name = "sence")
    private String sence;

    /**
     * 场景组
     */
    @RequestField(name = "group")
    private String group;

    /**
     * 设备id
     */
    @RequestField(name = "device_id")
    private String deviceId;


    @RequestField(name = "item_id")
    private String itemId;

    /**
     * 请求id, 链路追踪id
     */
    @RequestField(name = "request_id")
    private String requestId;


    @RequestField(name = "rec_num")
    @Max(100)
    private Integer recNum = 8;

    /**
     * 召回数量(每页召回数量)
     */
    @RequestField(name = "page_size")
    @Max(100)
    private Integer pageSize = 8;

    /**
     * 页码(默认1-第一页)
     */
    @RequestField(name = "page_num")
    private Integer pageNum = 1;


}
